//
//  WCWidgetPlugin.h
//  WebClipperDash
//
//  Created by Daniel Braun on 03/04/07.
//  Copyright 2007 Daniel Braun http://page-appart.net, http://braun.daniel.free.fr All rights reserved.
//

#import <Cocoa/Cocoa.h>


@class WindowScriptObject;
@class WCWebLoader;

@class WCExtractSetArray;
@interface WCWidgetPlugin : NSObject {
	WCWebLoader *loader;
	NSString *status;
	NSMutableDictionary *extracted;
	WCExtractSetArray *esets;
	BOOL allDone;
	//NSString
}

- (void) activateHistory:(NSString *)appName;

- (void)  loadContent;
- (BOOL) contentLoaded;
- (NSNumber *) allLoaded;

- (NSDictionary *) extracts;
- (id) extractForKey:(NSString *) extract;
- (void) windowScriptObjectAvailable:(WindowScriptObject *) windowScriptObject;
- (id) initWithWebView:(WebView*)webView; 
@end

@interface JString : NSObject {
	id obj;
}
- (NSString *) shortString;
- (NSString *) string;
- (id) initWithObject:(id)_s;
@end